<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>线上社区超市后台管理系统</title>
    <link rel="stylesheet" href="css/public.css"/>
    <link rel="stylesheet" href="css/style.css"/>
</head>
<body>
<!--头部-->
    <header class="publicHeader">
        <h1>线上社区超市后台管理系统</h1>
        <div class="publicHeaderR">
            <p><span>你好！</span><span style="color: #fff21b"> ${sessionScope.userSession.userName}</span> , 欢迎你！</p>
            <a href="login.jsp">退出</a>
        </div>
    </header>
<!--时间-->
    <section class="publicTime">
        <span id="time">2015年1月1日 11:11  星期一</span>
    </section>
<!--主体内容-->
    <section class="publicMian ">
        <div class="left">
            <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
            <nav>
                <ul class="list">
                    <li ><a href="goodsEdit.jsp">商品管理</a></li>
                    <li ><a href="billListServlet">订单管理</a></li>
                    <li><a href="userServlet">用户管理</a></li>
                    <li><a href="password.jsp">密码修改</a></li>
                    <li><a href="loginOut">退出系统</a></li>
                </ul>
            </nav>
        </div>
        <div class="right">
            <div class="location">
                <strong>你现在所在的位置是:</strong>
                <span>订单管理页面</span>
            </div>
            <div class="search">
        <form action="billStatusClassifyServlet" method="get">
            <span>订单状态：</span>
            <select name="billStatus">
                <option value="">--请选择--</option>
                <option value="SHIPPED">已发货</option>
                <option value="NOT_SHIPPED">未发货</option>
                <option value="RECEIVED">已完成</option>
            </select>
            <input type="submit" value="查询"/>
        </form>
            </div>
            <table class="providerTable" cellpadding="0" cellspacing="0">
                <tr class="firstTr">
                    <th width="10%">账单编码</th>
                    <th width="20%">用户Id</th>
                    <th width="10%">账单金额</th>
                    <th width="10%">是否发货</th>
                    <th width="10%">创建时间</th>
                    <th width="30%">操作</th>
                </tr>
                <c:forEach items="${sessionScope.smbmsBills}" var="bills">
                <tr>
                    <td>${bills.orderCode}</td>
                    <td>${bills.userId}</td>
                    <td>${bills.totalPrice}</td>
                    <c:if test="${bills.status.equals('NOT_SHIPPED')}">
                        <td>未发货</td>
                    </c:if>
                    <c:if test="${bills.status.equals('SHIPPED')}">
                        <td>已发货</td>
                    </c:if>
                    <c:if test="${bills.status.equals('RECEIVED')}">
                        <td>已完成</td>
                    </c:if>
                    <td>${bills.createTime}</td>
                    <td>
                        <a href="billView?orderCode=${bills.orderCode}"><img src="images/xiugai.png" alt="修改" title="修改"/></a>
                    </td>
                </c:forEach>

                </tr>
            </table>
        </div>
    </section>

<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<div class="remove" id="removeBi">
    <div class="removerChid">
        <h2>提示</h2>
        <div class="removeMain">
            <p>你确定要删除该订单吗？</p>
            <a href="#" id="yes">确定</a>
            <a href="#" id="no">取消</a>
        </div>
    </div>
</div>

<script src="js/jquery.js"></script>
<script src="js/js.js"></script>
<script src="js/time.js"></script>

</body>
</html>